#ifndef _OLED_H_
#define _OLED_H_

#include "stm32f10x.h"

#define CS_L GPIOB->ODR &=~(1<<7)
#define CS_H GPIOB->ODR |= (1<<7)

#define RES_L GPIOB->ODR &=~(1<<6)
#define RES_H GPIOB->ODR |= (1<<6)

#define DC_L GPIOB->ODR &=~(1<<12)
#define DC_H GPIOB->ODR |= (1<<12)

void OLEDInit(void);
void Display(void);
void OLED_Clear(void);
void DisplayAsciiString(uint8_t page,uint8_t col,char *pch);

#endif
